package com.chrisbaileydeveloper.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.chrisbaileydeveloper.domain.Book;

public interface BookRepository extends CrudRepository<Book, Long> {

    @Query(" select count(c.id) from Book c")
    Long findBookCount();

}
